import request from '@/utils/request'

export function getBillList(params = {}) {
    return request({
        url: '/getBillList',
        method: 'get',
        params
    })
}

export function getAhCompanyList(params = {}) {
    return request({
        url: "/getAhCompanyList",
        method: "get",
        params
    })
}

export function pauseOrder(data = {}) {
    return request({
        url: '/pauseOrder',
        method: 'post',
        data
    })
}

//获取详细运单
export function waybillTracking(data) {
    return request({
        url: '/waybillTracking',
        method: 'get',
        params: data
    })
}

//获取分运单详情
export function waybillDetails(data) {
    return request({
        url: '/waybillDetails',
        method: 'get',
        params: data
    })
}
//核对运单
export function verifyWaybill(data) {
    return request({
        url: '/verifyWaybill',
        method: 'post',
        data
    })
}

//查看回单
export function viewReceipts(data) {
    return request({
        url: '/viewReceipts',
        method: 'get',
        params: data
    })
}

//保存回单

export function updateViewReceipts(data) {
    return request({
        url: '/updateViewReceipts',
        method: 'post',
        data
    })
}

//删除总运单
export function deleteMainBill(data) {
    return request({
        url: '/deleteMainBill',
        method: 'post',
        data
    })
}

//全部运单追踪
export function getOwnerBillList(data) {
    return request({
        url: '/getBillList',
        method: 'get',
        params: data
    })
}


//司机信息查询
export function getDriverDetail(data) {
    return request({
        url: '/getDriverDetail',
        method: 'get',
        params: data
    })
}

//获取合同链接
export function getContractLink(params = {}) {
    return request({
        url: '/getContractLink',
        method: "get",
        params
    })
}
//删除分运单
export function deleteSubBill(data = {}) {
    return request({
        url: "/deleteSubBill",
        method: "post",
        data
    })
}

export function getSubBillList(params = {}) {
    return request({
        url: "/getSubBillList",
        method: "get",
        params
    })
}
